package org.ala.tiktools.sharddb.db;

/**
 * @author ala
 * @date 2024-12-27 13:32
 */
public class ThreadLocalLookupKey {


    /**
     *  线程环境中拿lookup key
     */
    protected static ThreadLocal<String> lookup = new ThreadLocal<>();


    /**
     *  给lookup
     */
    public static void setLookup(String key) {
        lookup.set(key);
    }
    /**
     *  取
     */
    public static String getLookup() {
        return lookup.get();
    }
    /**
     *  清
     */
    public static void clear() {
        lookup.remove();
    }
}
